import Mock from 'mockjs';
//新闻中心
let sUrl=window.base.config.baseUrl+'news-limit-3';
Mock.mock(sUrl,'get', {
    'code': 0,
    'data': {
        'list1|3': [{
            'cat_id|+1':1,
            'cat_name': '@cword(4)',//随机长度为2 到 6 的汉字
            'cover': '@image(200x100)',//随机一个图片
            'news|2':[{
                'id': '@integer(100,5000)',//100到5000的随机整数
                'title': '@cword(8,20)',//随机长度为在8到20内的汉字字符串
                'description':'@cparagraph(0,10)',//随机生成0到10段句子
                'thumb':'@image(252x168, #50B347, #FFFFFF)',//随机一个图片
                'publish_time':'@date()',//随机生成时间
                'link':'@url()',//随机生成链接
                'body':'@cparag raph(5)'//随机生成两段话
            }]
        }]
    },
    'message': '操作成功',
    'systemDate': new Date().getTime()
});
//from
let fUrl='from.json';
Mock.mock(fUrl,'get',{
    'code':200,
    'message': '操作成功',
    "aBan":{
        "title":"@cword(10)",
        "list":"@cword(8,20)",
        "img":"@image(1920x520, #50B347, #FFFFFF)"
    }

})
//d大企业
let bUrl='bigbus.json';
Mock.mock(bUrl,'get',{
    'code':200,
    'aBan':{
        'title':'@cword(4)',
        'list':'@cword(8,20)',
        'btn':'申请使用',
        'url':'from',
        'img':'@image(1920x420, #50B347, #FFFFFF)',//随机一个图片
    },
    "aCos":[
        {
            "zn":"@cword(4)",
            "en":"@word(5,8)",
            "list":"@cword(8,60)"
        },
        {
            "zn":"@cword(4)",
            "en":"@word(5,8)",
            "list":"@cword(8,20)"
        },
        {
            "zn":"@cword(4)",
            "en":"@word(5,8)",
            "list":"@cword(8,20)"
        }
    ],
    "aPla":{
        "bg":"@image(1920x750, #50B347, #FFFFFF)",
        "aPlaList":[
            {
                "title":"@cword(3,8)",
                "list":"@cword(8,25)"
            },
            {
                "title":"@cword(3,8)",
                "list":"@cword(8,25)"
            },
            {
                "title":"@cword(3,8)",
                "list":"@cword(8,25)"
            },
            {
                "title":"@cword(3,8)",
                "list":"@cword(8,25)"
            },
            {
                "title":"@cword(3,8)",
                "list":"@cword(8,25)"
            },
            {
                "title":"@cword(3,8)",
                "list":"@cword(8,25)"
            }
        ]
    },
    "aDem":{
        "bg":"images/bigbus/bbs3.jpg",
        "aDemList":[
            {
                "icn":"e686",
                "list":"@cword(8,25)"
            },
            {
                "icn":"e7a4",
                "list":"@cword(8,25)"
            },
            {
                "icn":"e692",
                "list":"@cword(8,25)"
            },
            {
                "icn":"e62e",
                "list":"@cword(8,25)"
            }
        ]
    }
})
//成长行企业
let gUrl='group.json';
Mock.mock(gUrl,'get', {
    'code': 200,
    'aBan':[
        {
            "title":"成长型企业 员工关爱平台",
            "list":"13年深耕，超万家客户认可的员工关爱平台",
            "btn":"申请试用",
            "url":"from",
            "img":'@image(1920x676)'
        }
    ],
    "aPro":{
        "aProBig":[
            {
                "img":'@image(600x576)',
                "title":"弹性福利",
                "subtitle":"一站式全场景员工福利解决方案",
                "list":"· 电商购物、餐饮美食、休闲娱乐、运动健康……<br />· 海量福利消费场景，员工多维需求全覆盖<br />· 福利统筹管理，HR工作效率提高<br />· 合规税务优化，企业成本显著降低<br />· 员工激励认可，福利满意度有效提升<br />· 原生业务兼容，现有系统/供应商无缝对接",
                "btn":"了解详情",
                "url":"pro"
            },
            {
                "img":"@image(600x576)",
                "title":"节日福利",
                "subtitle":"覆盖全年节日场景的员工福利方案",
                "list":"· 海量年节福利消费通路<br />· 知名品牌+网红潮品<br />· 全国点对点包邮到家<br />· 先行赔付机制，24小时售后",
                "btn":"了解详情",
                "url":"nj"
            },
            {
                "img":"@image(600x576)",
                "title":"员工午餐/交通/培训",
                "subtitle":"员工职场需求一站统筹，省心又省钱！",
                "list":"· 员工职场多维需求全覆盖<br />· 合规消费通路，全面预算管理<br />· 计入福利/教育培训科目，节约企业成本<br />· 先消费后结算，降低资金风险",
                "btn":"了解详情",
                "url":"senc"
            },
            {
                "img":"@image(600x576)",
                "title":"EAP解决方案 员工心理关怀",
                "subtitle":"中智职业心理健康中心旗下专业身心健康服务",
                "list":"· 17年服务经验，300万+服务员工<br />· 专业心理咨询服务，7*24小时即时响应<br />“答心”掌上EAP, 心理顾问随身行<br />· 心理测试、主题阅读、健康贴士…",
                "btn":"了解详情",
                "url":"eap"
            }
        ],
        "aProSmall":[
            {"title":"弹性福利"},
            {"title":"节日福利"},
            {"title":"员工午餐/交通/培训"},
            {"title":"员工心理关怀"}
        ]
    },
    "info":[
        {
            "icn":"e687",
            "title":"方案设计",
            "list":"匹配福利制度<br />根据规模和地域设计"
        },
        {
            "icn":"e617",
            "title":"员工沟通",
            "list":"构建企业文化<br />收集需求反馈及时更新"
        },
        {
            "icn":"e623",
            "title":"项目实施",
            "list":"资源一站整合<br />经验丰富的执行团队"
        },
        {
            "icn":"e707",
            "title":"方案反馈",
            "list":"丰富的数据报告<br />持续的项目优化升级"
        }
    ],
    "content":{
        "bg":"images/growingup/gu2.jpg",
            "cont":[
            {
                "icn":"e6fa",
                "title":"服务能力",
                "list":"覆盖全国的服务网络<br />机器人物流无人仓<br />强大的亿级数据处理能力"
            },
            {
                "icn":"e644",
                "title":"渠道把控",
                "list":"精选各类主流品牌供应商 <br />完整的线上线下服务供应链<br />自动化的渠道监控/跟踪/响应"
            },
            {
                "icn":"e6b3",
                "title":"专家团队",
                "list":"福利、健康、咨询行业专家<br />24小时服务器监控团队<br />央企直属人力资源公司"
            },
            {
                "icn":"e620",
                "title":"售后保障",
                "list":"客服呼叫服务<br />先行赔付的售后机制<br />完善的服务监控、数据备份机制"
            }
        ]
    },
    'message': '操作成功',
    'systemDate': new Date().getTime()
});